package vip.denglei.company.service.app.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.denglei.company.mapper.AppShoppingCartMapper;
import vip.denglei.company.model.app.AppShoppingCart;
import vip.denglei.company.model.app.vo.ShoppingCartByUserIdVO;
import vip.denglei.company.service.app.AppShoppingCartService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AppShoppingCartServiceImpl extends ServiceImpl<AppShoppingCartMapper, AppShoppingCart> implements AppShoppingCartService {
    @Resource
    private AppShoppingCartMapper appShoppingCartMapper;

    @Override
    public List<ShoppingCartByUserIdVO> queryShoppingCartByUserId(String userId) {
        return appShoppingCartMapper.queryShoppingCartByUserId(userId);
    }
}
